using Unity.VisualScripting;
using UnityEngine;

[UnitTitle("MyEventsNode")]
[UnitCategory("Events\\MyEvents")]
public class Stop2ResMyEventsNodeetEvent : EventUnit<int>
{
    [DoNotSerialize]
    public ValueOutput result { get; private set; }
    protected override bool register => true;

    public override EventHook GetHook(GraphReference reference)
    {
        return new EventHook(MyEventNames.MyEventsNode);
    }
    protected override void Definition()
    {
        base.Definition();
        result = ValueOutput<int>(nameof(result));
    }
    protected override void AssignArguments(Flow flow, int data)
    {
        flow.SetValue(result, data);
    }
}